<template>
  <div class="callback-container">
    <div class="loading-spinner">
      <i class="fas fa-spinner fa-spin"></i>
      <p>正在处理登录信息...</p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useGuard } from '@authing/guard-vue3'
import { ElMessage } from 'element-plus'

const router = useRouter()
const route = useRoute()
const guard = useGuard()

onMounted(async () => {
  guard.logout()
})
</script>

<style scoped>
.callback-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f8fafc 100%);
}

.loading-spinner {
  text-align: center;
  color: #4f46e5;
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.loading-spinner p {
  font-size: 1.2rem;
  margin: 0;
}
</style>
